//默认分页样式
export const pagination = {
    current: 1, //当前页码
    total: 0, // 总条数
    pageSize: 10, //每页中显示10条数据
    showTotal: total => `共${total} 条数据`, //分页中显示总的数据
    showSizeChanger: true,
}


export const orderListTable = [

    {
        title: '订单编号',
        align: "left",
        width: 180,
        dataIndex: 'id',

    },


    {
        title: '车辆信息',
        width: 120,
        scopedSlots: {
            customRender: 'vehicleInfo'
        },
    },


    {
        title: '场地车位',
        scopedSlots: {
            customRender: 'placeName'
        },
        width: 200,

    },


    {
        title: '进出时间',
        align: "left",
        scopedSlots: {
            customRender: 'timeSlot'
        },
        ellipsis: true,
        width: 180,
    },

    {
        title: '停放时长',
        align: "left",
        dataIndex: 'stayDuration',
        width: 200,
    },

    {
        title: '停留状态',
        align: "center",
        scopedSlots: {
            customRender: 'stayStatus'
        },
        width: 100,
    },

    {
        title: '计费属性',
        align: "center",
        scopedSlots: {
            customRender: 'needPayAttr'
        },
        width: 100,
    },


    {
        title: '订单金额',
        align: "center",
        customRender: record => record.payableFee / 100,
        width: 100,
    },

    {
        title: '已付金额',
        align: "center",
        customRender: record => record.actuallyFee / 100,
        width: 100,
    },


    {
        title: '待付金额',
        align: "center",
        customRender: record => record.arrearsFee / 100,
        width: 100,
    },


    {
        title: '其他属性',
        align: "left",
        ellipsis: true,
        scopedSlots: {
            customRender: 'otherSlot'
        },


    },


    {
        title: '操作',
        fixed: "right",
        align: "center",
        width: 180,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];


export const taskListTable = [

    {
        title: '任务类型',
        width: 100,
        dataIndex: 'type',
        scopedSlots: {
            customRender: 'type'
        },
    },

    {
        title: '任务编号',
        align: "left",
        width: 200,
        dataIndex: 'id',

    },

    {
        title: '关联订单',
        align: "left",
        width: 200,
        dataIndex: 'orderId',

    },

    {
        title: '关联车牌',
        align: "left",
        width: 100,
        dataIndex: 'plateNo',

    },


    {
        title: '关联场地',
        align: "left",
        dataIndex: 'placeName',
        width: 180,

    },


    {
        title: '任务摘要',
        align: "left",
        dataIndex: 'digest',
        ellipsis: true,

    },


    {
        title: '任务状态',
        width: 110,
        dataIndex: 'status',
        scopedSlots: {
            customRender: 'status'
        },
    },


    {
        title: '发布时间',
        align: "left",
        dataIndex: 'startTime',
        width: 170,
    },
    {
        title: '操作',
        fixed: "right",
        align: "center",
        width: 130,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];

export const reviewTable = [

    {
        title: '单据编号',
        align: "left",
        width: 180,
        dataIndex: 'id',

    },

    {
        title: '反馈类型',
        width: 100,
        dataIndex: 'type',

    },


    {
        title: '车主昵称',
        align: "left",
        width: 170,
        dataIndex: 'name',

    },

    {
        title: '联系电话',
        align: "left",
        width: 120,
        dataIndex: 'phone',

    },


    {
        title: '关联订单',
        align: "left",
        dataIndex: 'orderId',
        width: 180,


    },


    {
        title: '订单车牌',
        align: "left",
        width: 100,
        dataIndex: 'plateNo',

    },


    {
        title: '场地',
        align: "left",
        dataIndex: 'placeName',
        ellipsis: true,
        width: 170,


    },





    {
        title: '反馈内容',
        align: "left",
        dataIndex: 'content',

        ellipsis: true,
    },

    {
        title: '反馈时间',
        align: "left",
        dataIndex: 'createTime',
        width: 170,
    },


    {
        title: '状态',
        width: 100,
        dataIndex: 'status',
        scopedSlots: {
            customRender: 'status'
        },
    },
    {
        title: '操作',
        fixed: "right",
        align: "center",
        width: 130,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];

